<template>
    <div>
        <van-tabbar v-model="active" route>
            <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
            <van-tabbar-item icon="shop-o" to="/sort">分类</van-tabbar-item>
            <van-tabbar-item icon="sign" to="/worthbuy">值得买</van-tabbar-item>
            <van-tabbar-item icon="cart-o" to="/cart">购物车</van-tabbar-item>
            <van-tabbar-item icon="contact" to="/personal">个人</van-tabbar-item>
        </van-tabbar>
    </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
const active = ref(0)
</script>

<style scoped>
</style>